package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.dtos.WmScanDto;
import com.heima.model.wemedia.pojos.WmNews;

/**
* @author 马毅爽
* @description 针对表【wm_news(自媒体图文内容信息表)】的数据库操作Service
* @createDate 2023-12-03 20:32:25
*/
public interface WmNewsService extends IService<WmNews> {

    ResponseResult findAll(WmNewsPageReqDto dto);

    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto);

    /**
     * 文章上下架
     * @param dto
     * @return
     */
    ResponseResult downOrUp(WmNewsDto dto);

    ResponseResult listVo(WmScanDto dto);

    ResponseResult voDetail(Integer id);

    ResponseResult authFail(WmScanDto dto);

    ResponseResult authPass(WmScanDto dto);
}
